// 设置网关
window["APP_GETEWAY"] =
  import.meta.env.VITE_APP_ENV === "production"
    ? {
        oms: "https://api-prod.sz2k.com/oms",
        tms: "https://api-prod.sz2k.com/tms",
        pms: "https://api-prod.sz2k.com/pms",
        goods: "https://api-prod.sz2k.com/goods",
        wms: "https://api-prod.sz2k.com/wms",
        tc: "https://api-prod.sz2k.com/tc",
        base: "https://api-prod.sz2k.com/base",
        dexh: "https://api-prod.sz2k.com/dexh",
        auth: "https://api-prod.sz2k.com/auth",
        publish: "https://api-prod.sz2k.com/amz-publish",
        trans: "https://translate.sz2k.com",
        crm: "https://api-prod.sz2k.com/crm",
        pmc: "https://api-prod.sz2k.com/pmc",
        owpmc: "https://api-prod.sz2k.com/ow-pmc",
        public: "https://erp.sz2k.com/gateway/public",
        message: "https://api-prod.sz2k.com",
      }
    : import.meta.env.VITE_APP_ENV === "pre"
    ? {
        oms: "https://api-pre.sz2k.com/oms",
        tms: "https://api-pre.sz2k.com/tms",
        pms: "https://api-pre.sz2k.com/pms",
        goods: "https://api-pre.sz2k.com/goods",
        wms: "https://api-pre.sz2k.com/wms",
        tc: "https://api-pre.sz2k.com/tc",
        base: "https://api-pre.sz2k.com/base",
        dexh: "https://api-pre.sz2k.com/dexh",
        auth: "https://api-pre.sz2k.com/auth",
        publish: "https://api-pre.sz2k.com/amz-publish",
        trans: "https://translate.sz2k.com",
        crm: "https://api-pre.sz2k.com/crm",
        pmc: "https://api-pre.sz2k.com/pmc",
        owpmc: "https://api-pre.sz2k.com/ow-pmc",
        public: "https://erp.sz2k.com/gateway/public",
        message: "https://api-pre.sz2k.com",
      }
    : {
        oms: "http://10.20.9.42:8012/oms",
        tms: "http://10.20.9.42:8012/tms",
        pms: "http://10.20.9.42:8012/pms",
        goods: "http://10.20.9.42:8012/goods",
        wms: "http://10.20.9.42:8012/wms",
        tc: "http://10.20.9.42:8012/tc",
        base: "http://10.20.9.42:8012/base",
        dexh: "http://10.20.9.42:8012/dexh",
        auth: "http://10.20.9.42:8012/auth",
        publish: "http://10.20.9.42:8012/amz-publish",
        trans: "http://10.20.9.25:5001",
        crm: "http://10.20.9.42:8012/crm",
        pmc: "http://10.20.9.42:8012/pmc",
        owpmc: "http://10.20.9.42:8012/owpmc",
        public: "http://10.20.9.24:8020/public",
        message: "http://10.20.9.42:8012",
      }
